<h4 id ="reb" style="margin-left:350px;">Search found <%= " " +records.length +" "%> Results</h4>
<table id = "searchResults">
	<tr>
	<hr>
		<td><b>Town</td><td><b>Date</td><td><b>Building</td><td><b>Maker</td><td></td>
	</tr>
	<tr >
		<td width ="200"></td><td width ="300"></td><td  width ="200"></td><td  width ="350"></td><td  width ="300"></td><td width="150"></td>
	</tr>
	<% for (var i in records) {%>
		<% var geb = "" %>
		<% if((geb === "" || records[i].gebaeude != geb) && records[i].gebaeude != undefined) { %>
			<% geb = records[i].gebaeude %>
			<tr>
				<% if(records[i].datum != null && records[i].datum != undefined) { %>
					<td class="cell" width ="200"><%= records[i].ort%></td>
					<td  width ="200"><%=records[i].plz%><%= " " + records[i].ort%></td>
					<td  width ="200"><%=records[i].datum%></td>
					<td  width ="300"><%=records[i].gebaeude%></td>
					<% if(records[i].vorname === null) { %>
						<td  width ="200"><%=records[i].name%></td>
					<%}%>
					<% if(records[i].vorname != undefined) { %>
						<td  width ="450"><%=records[i].name%><%= " "+records[i].vorname%></td>
					<%}%>
					<td  width ="200"><a href="/detail?gebaeude=<%= records[i].gebaeude %>"><p>Details</a></td>
				<%}%>
			</tr>
		<%}%>
	<%}%>
	
</table>
<hr>




